﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Entetities;
using DAL;

namespace BLL
{
    public class NhaSanXuatBO
    {
        NhaSanXuatDAL dal;
        public NhaSanXuatBO()
        {
            dal = new NhaSanXuatDAL();
        }
        public List<NhaSanXuat> getNhaSanXuatByNhom1(int manhom)
        {
            List<NhaSanXuat> list = new List<NhaSanXuat>();
            try
            {
                list = dal.getNhaSanXuatByNhom1(manhom);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return list;
        }
        public DataTable getNhaSanXuatByNhom(int manhom)
        {
            DataTable dt = new DataTable();
            try
            {
                dt = dal.getNhaSanXuatByNhom(manhom);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return dt;
        }

        public DataTable getNhaSanXuatByID(int ID)
        {
            DataTable dt = new DataTable();
            try
            {
                dt = dal.getNhaSanXuatByID(ID);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return dt;
        }
    }
}
